package com.aia.prm.web.ria.app.ui.gpinsu;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.aia.aia2.domain.Gpinsu;
import com.vaadin.data.util.BeanItemContainer;

@SuppressWarnings("serial")
public class GpinsuContainer extends BeanItemContainer<Gpinsu> implements Serializable {
	public static final Object[] NATURAL_COL_ORDER = new Object[] { "GI_ID", "GI_NAME", "GI_SHORT", "GI_ORDER" };

	public static final String[] COL_HEADERS_SHOW = new String[] { "产品ID", "全名", "短名", "排序号" };

	public static final Object[] NATURAL_COL_ORDER_FORM = new Object[] { "GI_ID", "GI_NAME", "GI_SHORT", "GI_DESC", "GI_ORDER",
			"GI_ARGUMENTS" };

	public static final Map<String, String> FIELD_NAME_MAP = new HashMap<String, String>();

	static {
		FIELD_NAME_MAP.put("GI_ID", "产品ID");
		FIELD_NAME_MAP.put("GI_NAME", "全名");
		FIELD_NAME_MAP.put("GI_SHORT", "短名");
		FIELD_NAME_MAP.put("GI_DESC", "描述");
		FIELD_NAME_MAP.put("GI_ORDER", "排序号");
		FIELD_NAME_MAP.put("GI_ARGUMENTS", "算法参数");

	}

	public static final List<String> PLAN_TYPE_LIST = new ArrayList<String>();
	static {
		PLAN_TYPE_LIST.add("重疾保障");
		PLAN_TYPE_LIST.add("少儿教育");
		PLAN_TYPE_LIST.add("养老年金");
	}

	public GpinsuContainer() throws InstantiationException, IllegalAccessException {
		super(Gpinsu.class);
	}
}